package com.direct.domian;
import java.util.HashSet;
import java.util.Set;

/**
 * 配送点配送范围类
 * 
 * @author Administrator
 * 
 */
public class Range  {
	private String id;
	// 所属配送点
	private Distribution distribution;
	// 配送价格
	private Double price;
	// 名称
	private String name;
	// 状态是否开通
	private Integer state;
	// 对应的配送范围与配送价格
	private Set<DispriceApply> dispriceApplies = new HashSet(0);

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Distribution getDistribution() {
		return distribution;
	}

	public void setDistribution(Distribution distribution) {
		this.distribution = distribution;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Set<DispriceApply> getDispriceApplies() {
		return dispriceApplies;
	}

	public void setDispriceApplies(Set<DispriceApply> dispriceApplies) {
		this.dispriceApplies = dispriceApplies;
	}

	public Range() {
	}

	public Range(String id) {
		this.id = id;
	}

	public Range(String id, Distribution distribution, Double price,
			String name, Integer state, Set<DispriceApply> dispriceApplies) {
		this.id = id;
		this.distribution = distribution;
		this.price = price;
		this.name = name;
		this.state = state;
		this.dispriceApplies = dispriceApplies;
	}

}